package cn.daniellee.plugin.pr.storage;

import cn.daniellee.plugin.pr.model.PlayerData;

import java.util.List;
import java.util.Map;

public abstract class Storage {

	public abstract boolean initialize();

	public abstract List<PlayerData> getAllEnabledPlayer(String exclude);

	public abstract PlayerData getPlayerByName(String name);

	public abstract void addPlayer(PlayerData playerData);

	public abstract void updatePlayer(String name, Map<String, Object> fields);

	public abstract void close();
}
